package channel_define

const (
	//系统
	SYS_CHANNEL = "sys_channel"
	//104采集 (主站)
	IEC_104_MASTER = "{348E12D3-308A-40da-B1AA-489F326C5695}" //采集
	//104转发 (从站)
	IEC_104_SLAVE           = "{DB0993DD-089D-4a9e-94B2-90E335A16055}" //转发
	MODBUS_RTU_MASTER       = "{11B642F4-4D18-4a6b-89F8-B15564BB3EB5}" //采集
	MODBUS_TCP_MASTER       = "{ED3C45F3-7CDB-4050-90BF-3EC88225273F}" //采集
	THINGSBOARD_MQTT_CLIENT = "{c41d701e-146e-4572-b6cd-4942bceb1133}" //thingsboard mqtt 转发
	DLT645_2007_MASTER      = "{D6BCC2C4-68A4-4df4-9F93-E85CF00E4B68}" //采集
)

type ModbusTcpProtocolInfo struct {
}

//const (
//	//字符串
//	PROTO_ATTR_DATA_TYPE_STRING = 0
//	//十进制
//	PROTO_ATTR_DATA_TYPE_DECIMAL = 10
//	//十六进制
//	PROTO_ATTR_DATA_TYPE_HEXA_DECIMAL = 16
//)

//// 默认规约配置获取
//func DefaultProtocol(key string) map[int]Attr {
//	switch key {
//	case IEC_104_MASTER:
//		return lec104Protocol
//	case MODBUS_TCP:
//		return modbusTcpProtocol
//	case MODBUS_RTU:
//		return modbusRtuProtocol
//	case THINGSBOARD_MQTT_CLIENT:
//		return thingsBoardMqttProtocol
//	}
//	return make(map[int]Attr, 0)
//}

//types Attr struct {
//	DataType int
//	Value    string
//}
//
//// modbus-tcp
//var modbusTcpProtocol = map[int]Attr{}
//
//var modbusRtuProtocol = map[int]Attr{}
